//
//  YBAuthNavigationController.m
//  YBWifiAuthSDK
//
//  Created by yiban on 16/1/21.
//  Copyright © 2016年 yiban. All rights reserved.
//

#import "YBAuthNavigationController.h"
#import "YBLoginViewController.h"
@interface YBAuthNavigationController ()

@end

@implementation YBAuthNavigationController

+ (instancetype)newWithAuthDelegate:(id<YBAuthDelegate>)delegate
{
    YBAuthNavigationController *navigationController = [super new];
    navigationController.navigationBarHidden = YES;
    if (navigationController) {
        [navigationController setupAuthorizedWithDelegate:delegate];
    }
    
    return navigationController;
}
- (void)setupAuthorizedWithDelegate:(id<YBAuthDelegate>)delegate
{
    YBLoginViewController *viewController = [YBLoginViewController new];
    viewController.delegate = delegate;
    self.viewControllers = @[viewController];
}

@end
